package com.zl.easybuy.util;

import com.zl.easybuy.pojo.Product;
import lombok.Data;

@Data
public class CartItem {
    private Product product;
    private int quantity;
    public double getCost(){
        return product.getPrice()*quantity;
    }
}
